<html>
<head><meta charset="utf-8"><title>How to Update Reference Submodule? · t-lang/doc · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/237824-t-lang/doc/index.html">t-lang/doc</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/237824-t-lang/doc/topic/How.20to.20Update.20Reference.20Submodule.3F.html">How to Update Reference Submodule?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="222536177"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/237824-t-lang/doc/topic/How%20to%20Update%20Reference%20Submodule%3F/near/222536177" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> isHavvy <a href="https://rust-lang.github.io/zulip_archive/stream/237824-t-lang/doc/topic/How.20to.20Update.20Reference.20Submodule.3F.html#222536177">(Jan 13 2021 at 05:37)</a>:</h4>
<p>I'm not well versed in git submodules and I'd like to update the reference's submodule to our master branch. How does one do so?</p>
<p>(I want to link the nice work done on const generics to Reddit)</p>



<a name="222536197"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/237824-t-lang/doc/topic/How%20to%20Update%20Reference%20Submodule%3F/near/222536197" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/237824-t-lang/doc/topic/How.20to.20Update.20Reference.20Submodule.3F.html#222536197">(Jan 13 2021 at 05:37)</a>:</h4>
<p>Ah, I have a PR ready to go, just need to hit the button. <span aria-label="smile" class="emoji emoji-1f642" role="img" title="smile">:smile:</span></p>



<a name="222536287"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/237824-t-lang/doc/topic/How%20to%20Update%20Reference%20Submodule%3F/near/222536287" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/237824-t-lang/doc/topic/How.20to.20Update.20Reference.20Submodule.3F.html#222536287">(Jan 13 2021 at 05:38)</a>:</h4>
<p>Generally to update a submodule, it is <code>git submodule update --remote src/doc/reference</code>, then add and commit.  I have a tool which I use to automate everything and run tests before pushing the PR.</p>



<a name="222536326"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/237824-t-lang/doc/topic/How%20to%20Update%20Reference%20Submodule%3F/near/222536326" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/237824-t-lang/doc/topic/How.20to.20Update.20Reference.20Submodule.3F.html#222536326">(Jan 13 2021 at 05:39)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust/pull/80973">https://github.com/rust-lang/rust/pull/80973</a></p>



<a name="222536412"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/237824-t-lang/doc/topic/How%20to%20Update%20Reference%20Submodule%3F/near/222536412" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> isHavvy <a href="https://rust-lang.github.io/zulip_archive/stream/237824-t-lang/doc/topic/How.20to.20Update.20Reference.20Submodule.3F.html#222536412">(Jan 13 2021 at 05:41)</a>:</h4>
<p>Ah, cool. Is that tool publicly available by any chance?</p>



<a name="222536426"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/237824-t-lang/doc/topic/How%20to%20Update%20Reference%20Submodule%3F/near/222536426" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/237824-t-lang/doc/topic/How.20to.20Update.20Reference.20Submodule.3F.html#222536426">(Jan 13 2021 at 05:41)</a>:</h4>
<p>yep: <a href="https://github.com/ehuss/subup">https://github.com/ehuss/subup</a></p>



<a name="222536484"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/237824-t-lang/doc/topic/How%20to%20Update%20Reference%20Submodule%3F/near/222536484" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/237824-t-lang/doc/topic/How.20to.20Update.20Reference.20Submodule.3F.html#222536484">(Jan 13 2021 at 05:42)</a>:</h4>
<p>I'm the only one who uses it, so it might be quirky. <span aria-label="smile" class="emoji emoji-1f642" role="img" title="smile">:smile:</span></p>



<a name="222536529"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/237824-t-lang/doc/topic/How%20to%20Update%20Reference%20Submodule%3F/near/222536529" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> isHavvy <a href="https://rust-lang.github.io/zulip_archive/stream/237824-t-lang/doc/topic/How.20to.20Update.20Reference.20Submodule.3F.html#222536529">(Jan 13 2021 at 05:43)</a>:</h4>
<p>Should we get you some possible users and mention it on <a href="https://forge.rust-lang.org/infra/toolstate.html">https://forge.rust-lang.org/infra/toolstate.html</a> ?</p>



<a name="222536657"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/237824-t-lang/doc/topic/How%20to%20Update%20Reference%20Submodule%3F/near/222536657" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/237824-t-lang/doc/topic/How.20to.20Update.20Reference.20Submodule.3F.html#222536657">(Jan 13 2021 at 05:45)</a>:</h4>
<p>Possibly. I'm not sure if anyone is really interested in it, but I wouldn't mind.</p>



<a name="222536742"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/237824-t-lang/doc/topic/How%20to%20Update%20Reference%20Submodule%3F/near/222536742" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eric Huss <a href="https://rust-lang.github.io/zulip_archive/stream/237824-t-lang/doc/topic/How.20to.20Update.20Reference.20Submodule.3F.html#222536742">(Jan 13 2021 at 05:46)</a>:</h4>
<p>I somehow find it kinda funny that there is over 1,000 lines of code just to essentially run <code>git submodule update --remote …stuff</code>.  Git can be a real trip.</p>



<a name="222537431"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/237824-t-lang/doc/topic/How%20to%20Update%20Reference%20Submodule%3F/near/222537431" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> isHavvy <a href="https://rust-lang.github.io/zulip_archive/stream/237824-t-lang/doc/topic/How.20to.20Update.20Reference.20Submodule.3F.html#222537431">(Jan 13 2021 at 05:58)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust-forge/pull/499">https://github.com/rust-lang/rust-forge/pull/499</a> filed.</p>



<a name="222658704"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/237824-t-lang/doc/topic/How%20to%20Update%20Reference%20Submodule%3F/near/222658704" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/237824-t-lang/doc/topic/How.20to.20Update.20Reference.20Submodule.3F.html#222658704">(Jan 13 2021 at 22:53)</a>:</h4>
<p><span class="user-mention" data-user-id="296643">@isHavvy</span> I reviewed the second change. Looking at the first.</p>



<a name="222659070"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/237824-t-lang/doc/topic/How%20to%20Update%20Reference%20Submodule%3F/near/222659070" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Josh Triplett <a href="https://rust-lang.github.io/zulip_archive/stream/237824-t-lang/doc/topic/How.20to.20Update.20Reference.20Submodule.3F.html#222659070">(Jan 13 2021 at 22:57)</a>:</h4>
<p>And I've now reviewed the first.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>